package com.cal.utms.core;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class GroupScreenAction extends ActionSupport implements ModelDriven<ScreenGroupDto> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ScreenGroupDto groupDto = new ScreenGroupDto();
	private int groupid;
	MenuModel menuModel = new MenuModel();

	public String getScreenByGruopId() {
		groupDto.setDtos(menuModel.getScreenByGroup(groupid));
		return Action.SUCCESS;
	}

	@Override
	public ScreenGroupDto getModel() {
		return groupDto;
	}

	public ScreenGroupDto getGroupDto() {
		return groupDto;
	}

	public void setGroupDto(ScreenGroupDto groupDto) {
		this.groupDto = groupDto;
	}

	public int getGroupid() {
		return groupid;
	}

	public void setGroupid(int groupid) {
		this.groupid = groupid;
	}

}
